package com.kingdee.eas.custom.common;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.jdbc.rowset.IRowSet;



public abstract class AbstractBasicFacadeControllerBean extends AbstractBizControllerBean implements BasicFacadeController
{
    protected AbstractBasicFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("9D8610BD");
    }

    public IRowSet getQuery(Context ctx, String sql, String params) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("f7c25315-c82c-41f7-8c40-8bf2c19a18c8"), new Object[]{ctx, sql, params});
            invokeServiceBefore(svcCtx);
            IRowSet retValue = (IRowSet)_getQuery(ctx, sql, params);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _getQuery(Context ctx, String sql, String params) throws BOSException
    {    	
        return null;
    }

    public void getExecute(Context ctx, String sql, String params) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("f7bf4570-47fe-4a9b-a23a-a72666cdff62"), new Object[]{ctx, sql, params});
            invokeServiceBefore(svcCtx);
            _getExecute(ctx, sql, params);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _getExecute(Context ctx, String sql, String params) throws BOSException
    {    	
        return;
    }

    public boolean hasAttachment(Context ctx, String billId) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c939ebe0-4a45-4cca-9901-60cb587c7da0"), new Object[]{ctx, billId});
            invokeServiceBefore(svcCtx);
            boolean retValue = (boolean)_hasAttachment(ctx, billId);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected boolean _hasAttachment(Context ctx, String billId) throws BOSException
    {    	
        return false;
    }

}